import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import userStore from './modules/user'
import orderStore from './modules/order'
import menuStore from './modules/menu'

const store = createPinia()
store.use(piniaPluginPersistedstate)

export {
  store,
  userStore,
  orderStore,
  menuStore
}

export default store